package com.company.cloud.company.modules.api.service;

import com.company.cloud.common.bean.BaseClientResult;
import com.company.cloud.company.modules.api.fallback.CompanyCheckRemoteServiceFallbackFactory;
import com.company.common.server.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "companyCheck", name = ServiceNameConstant.user_center, fallbackFactory = CompanyCheckRemoteServiceFallbackFactory.class)
public interface CompanyCheckRemoteService {

    /**校验公司信息*/
    @RequestMapping(value = "/remote/user/companyCheck", method = RequestMethod.GET)
    public BaseClientResult<String> checkCompany(@RequestParam("companyNo") String companyNo);

}
